import request from '@/utils/request'

export function zzq(data) {
  return request({
    url: '/order',
    method: 'post',
    data
  })
}
export function get(data) {
  return request({
    url: `/${data}`,
    method: 'get'
  })
}
export function user() {
  return request({
    url: '/user',
    method: 'get'
  })
}
export function dingdan(data) {
  return request({
    url: `/order?user_id=${data}`,
    method: 'get'
  })
}
export function xxx(data) {
  return request({
    url: '/user/5',
    method: 'get',
    data
  })
}
export function yyy(data) {
  return request({
    url: '/industry',
    method: 'get',
    data
  })
}
export function getshop() {
  return request({
    url: '/shop',
    method: 'get'
  })
}

export function reg(data) {
  return request({
    url: '/user',
    method: 'post',
    data
  })
}

export function login(data) {
  return request({
    url: `/user?usemname=${data.usemname}&password=${data.password}`,
    method: 'get'
  })
}

export function useres(data) {
  return request({
    url: `/user/${data}`,
    method: 'get'
  })
}
